package com.ruoyi.house.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房屋管理对象 tb_house
 * 
 * @author ruoyi
 * @date 2024-10-08
 */
public class TbHouse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房屋id */
    private Long houseId;

    /** 公寓id */
    @Excel(name = "公寓id")
    private Long apartmentId;

    /** 业主id */
    @Excel(name = "业主id")
    private Long ownerId;

    /** 门牌号 */
    @Excel(name = "门牌号")
    private Long doorplate;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String pictureAddress;

    /** 租金 */
    @Excel(name = "租金")
    private Long rent;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    public static final int STATE_AVAILABLE = 0;  // 未出租
    public static final int STATE_RENTED = 1;     // 已出租

    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }
    public void setApartmentId(Long apartmentId) 
    {
        this.apartmentId = apartmentId;
    }

    public Long getApartmentId() 
    {
        return apartmentId;
    }
    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }
    public void setDoorplate(Long doorplate) 
    {
        this.doorplate = doorplate;
    }

    public Long getDoorplate() 
    {
        return doorplate;
    }
    public void setPictureAddress(String pictureAddress) 
    {
        this.pictureAddress = pictureAddress;
    }

    public String getPictureAddress() 
    {
        return pictureAddress;
    }
    public void setRent(Long rent) 
    {
        this.rent = rent;
    }

    public Long getRent() 
    {
        return rent;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("houseId", getHouseId())
            .append("apartmentId", getApartmentId())
            .append("ownerId", getOwnerId())
            .append("doorplate", getDoorplate())
            .append("pictureAddress", getPictureAddress())
            .append("rent", getRent())
            .append("remark", getRemark())
            .append("state", getState())
            .toString();
    }
}
